Open Baseline Module using Link information

Greetings Forum Folks,
I have outlinks going to a Baseline.
I just want to loop thru the links in the current Module and open the baseline to get the information.

Just like the Analysis Wizard. How can i do that?

Thanks
 

Object o = current
Object obj
ModName_ trgModRef
Link l
void populateIncomingAndOugoingLinks(){
    //Find all Incoming and Outgoing Modules
                for l in o->"*" do {
                        ModuleVersion modVer = targetVersion l
                        trgModRef = module(modVer)
                        obj = target l
                        if(null obj){
                                load(modVer, true)
                        }     
                        obj = target l
                        string s = name(trgModRef)
                        if(isBaseline(modVer)){
                                s = s"["versionString(modVer) "]"
                        }
                        print s"\n"
                }
 
}
 
populateIncomingAndOugoingLinks

SystemAdmin - Thu Sep 15 17:56:58 EDT 2011

Re: Open Baseline Module using Link information
Mathias Mamsch - Thu Sep 15 18:04:41 EDT 2011

Your code is basically fine, I would just try to use for L in all (o->"*") do because if you leave our 'all' then you will find all links EXCEPT links to baselines, which is probably not what you intended. Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Open Baseline Module using Link information
SystemAdmin - Thu Sep 15 18:09:24 EDT 2011

Mathias Mamsch - Thu Sep 15 18:04:41 EDT 2011
Your code is basically fine, I would just try to use for L in all (o->"*") do because if you leave our 'all' then you will find all links EXCEPT links to baselines, which is probably not what you intended. Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

WOW...I cannot believe. Thanks as always Matt.